<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        input:checked + span {
            background-color: pink;
        }
        input:checked+span::before {
            content: "杏儿，我爱你";
            color: #eee;
        }

        input[type="text"] {
            border: 1px solid black;
        }

        input[type="text"]:enabled {
            background-color: green;
        }
        input[type="text"]:disabled {
            border: 1px solid #f20;
            background-color: #fcc;
        }

    </style>
</head>
<body>
    <label>
        一个小惊喜
        <input type="checkbox">
        <span></span>
    </label>

    <input type="text">
    <input type="text" disabled>
    
</body>
</html>